package com.mnb.base.service;

import com.mnb.base.entity.SysMenu;
import com.mnb.common.utils.R;

import java.util.Collection;
import java.util.List;
import java.util.Set;

public interface SysMenuService{

    R insert(SysMenu record);

    List<SysMenu> selectMenuList(SysMenu record);

    List<Long> selectMenuListByRoleId(Long roleId);

    SysMenu selectMenuById(Long menuId);

    R udpate(SysMenu sysMenu);

    R deleteByMenuId(Long menuId);

    Set<String> selectMenuPermsByUserId(Object userId);
}
